package fem2.gui.actions;

import fem2.gui.ShowDofsDialog;
import inf.vtk.pm.Pipeline;
import inf.vtk.pm.PipelineCollection;

import java.awt.Frame;
import java.awt.event.ActionEvent;

public class ShowDofsAction extends ActionBaseModel {

	private static final long serialVersionUID = 1L;

	private Pipeline pipeline_;

	public ShowDofsAction(PipelineCollection pc) {
		super("Show DOFs...", pc);
		pipeline_ = pc;
	}

	public void actionPerformed(ActionEvent e) {
		new ShowDofsDialog(Frame.getFrames()[0], pipeline_).setVisible(true);
	}
}
